import wepy from 'wepy'

// 定义根接口
const baseURL = "https://uinav.com/api/public/v1"

//封装提示消息
wepy.baseToast = function(title="获取数据失败",icon="none"){
  wepy.showToast({
    title:title,
    icon:icon
  })
}

wepy.get = function(url,data={}){
  return wepy.request({
    url:baseURL + url,
    data:data
  })
}
